package com.lnsoft.dqfs;

import com.lnsoft.dqfs.server.DqfsServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;


/**
 * tomcat 启动方式 自动调用
 *
 */
@Slf4j
public class SpringBootStartApplication  extends SpringBootServletInitializer {
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        // 开启log4j2 异步模式 需要设置systemProperties
        System.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");
        return builder.sources(Application.class);
    }



}
